

local Map = game.GetMap()

local EntitySpawnPositions = {}

EntitySpawnPositions["gm_construct"] = Vector(493, -238,85)
EntitySpawnPositions["gm_flatgrass"] = Vector(780, -180, 220)
EntitySpawnPositions["gm_new_space_Beta01"] = Vector(-14571, 11948, 8939)




local EntitySpawnAngles = {}

EntitySpawnAngles["gm_construct"] = Angle(90, 180, 180)
EntitySpawnAngles["gm_flatgrass"] = Angle(0, 90, 0)
EntitySpawnAngles["gm_new_space_Beta01"] = Angle(90, 90, 180)




function SpawnRulesEnt()

	local ent = ents.Create( "server_info" )
	
	ent:SetPos(EntitySpawnPositions[Map])
	
	ent:SetAngles(EntitySpawnAngles[Map])
	
 	ent:Spawn() 
	
end
hook.Add("InitPostEntity", "SpawnTheMegaEntity", SpawnRulesEnt)
concommand.Add( "rules", SpawnRulesEnt )